ISnapshotStorage

StockSharp.Algo.Storages

The interface for access to the storage of snapshot prices.

Implements: ISnapshotStorage

Methods

ClearAsync
public ValueTask ClearAsync(TKey key, CancellationToken cancellationToken)
result = iSnapshotStorage.ClearAsync(key, cancellationToken)

Remove snapshot for the specified key.

key
Key.
cancellationToken
CancellationToken

Returns: ValueTask

GetAllAsync
public IAsyncEnumerable<TMessage> GetAllAsync(DateTime? from, DateTime? to)
result = iSnapshotStorage.GetAllAsync(from, to)

Get all snapshots.

from
Start date, from which data needs to be retrieved.
to
End date, until which data needs to be retrieved.

Returns: All snapshots.

GetAsync
public ValueTask<TMessage> GetAsync(TKey key, CancellationToken cancellationToken)
result = iSnapshotStorage.GetAsync(key, cancellationToken)

Get snapshot for the specified key.

key
Key.
cancellationToken
CancellationToken

Returns: Snapshot.